package com.flyox.game.fivetiger.bean;

import java.io.Serializable;

public class Position implements Serializable, Cloneable {

	private static final long serialVersionUID = -7101824600603709349L;
	public int row;
	public int col;

	public Position(int row, int col) {
		this.row = row;
		this.col = col;
	}

	public boolean equals(Object obj) {
		if (obj instanceof Position) {
			if (this.row == ((Position) obj).row && this.col == ((Position) obj).col) {
				return true;
			}
		}
		return false;
	}

	public Object clone() {
		return new Position(row, col);
	}

	public String toString() {
		return "row=" + row + " col=" + col;
	}
}
